package com.manong.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;
import java.io.Serializable;

/**
 * (AttendanceManagement)实体类
 *
 * @author makejava
 * @since 2024-05-18 10:28:45
 */
public class AttendanceManagement implements Serializable {
    private static final long serialVersionUID = -54921640741388975L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long userId;
    /**
     * 出勤日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate attendanceDate;
    /**
     * 上班时间，正常上班时间9；00
     */

    @JsonFormat(pattern ="HH:mm:ss" )
    private LocalTime classStartTime;
    /**
     * 下班时间，正常下班时间6；00
     */
    @JsonFormat(pattern ="HH:mm:ss" )
    private LocalTime classEndTime;
    /**
     * 出勤状态，正常出勤，迟到，早退
     */
    private String attendanceStatus;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public LocalDate getAttendanceDate() {
        return attendanceDate;
    }

    public void setAttendanceDate(LocalDate attendanceDate) {
        this.attendanceDate = attendanceDate;
    }

    public LocalTime getClassStartTime() {
        return classStartTime;
    }

    public void setClassStartTime(LocalTime classStartTime) {
        this.classStartTime = classStartTime;
    }

    public LocalTime getClassEndTime() {
        return classEndTime;
    }

    public void setClassEndTime(LocalTime classEndTime) {
        this.classEndTime = classEndTime;
    }

    public String getAttendanceStatus() {
        return attendanceStatus;
    }

    public void setAttendanceStatus(String attendanceStatus) {
        this.attendanceStatus = attendanceStatus;
    }

}

